package com.itheima.d04_thread_methods;

public class Test {
    public static void main(String[] args) {
       Thread thread =new Thread(new Runnable() {
            @Override
            public void run () {
                for (int i = 0; i < 10; i++) {
                    System.out.println("hello kunkun");
                }
            }
        });
       thread.start();
        new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                System.out.println("hello aikun");
            }
        }).start();
    }
}
